export type InterFaceType = {
  code: number,
  data: any,
  msg: string
}

// 下拉
export type Option = {
  id: number | string,
  name: string,
}
// 下拉
export type OptionDisable = {
  id: number | string,
  name: string,
  disabled: boolean
}
// 模板下拉
export type TemOption = {
  id: number | string,
  title: string
}
export type Warehouse = {
  type: string,
  options: Option[]
}


// 入库 / 出库
 // 点击添加一项的逻辑
export type Goodstab = {
  itemId: number, // 物品ID
  realGoodPrice?: number, // 单价
  priceShow?: number,
  goodCount: number, // 数量
  remark?: string, // 备注
  brand?: string, // 品牌
  itemName?: string, // 物品名称
  type?: string, // 类型
  typeName?: string, // 物品类目
  specification?: string,  // 规格
  unit?: string, // 单位
  warnCount?: number, // 预警数量
  averagePrice?: number // 平均价格
  sumMoneyShow?: number // 总价
  countNum?: string | number // 库存数
  productionDate?: string // 生产日期
  periodOfValidity?: string // 有效期至
}


// 医生等待状态
export type AwaitStatus = {
  id: number,
  name: string,
  waitCount: string | number,
  status: string,
  active?: boolean
}

// 用于入库、出库等等商品表格类型
export type GoodList = {
  id?: string | number,
  itemName: string,
  type: string,
  typeName: string,
  brand: string,
  specification: string | number,
  countNum: string | number,
  goodCount: string | number,
  averagePrice: string | number,
  unit: string | number,
  nickname: string,
}


// 传入模板数据类型
export type TreeData = {
  id: number,
  label: string,
  other?: object,
  children: TreeData[],
  modelList: TreeData[],
  isType: boolean
}

export type MockType = {
  id: string,
  isActive: boolean,
}

export type Doctors = {
  id: number,
  name: string,
  status?: string
}

export type ArrearsOrderPay = {
  orderId: number,
  payMoneyShow: number | string
}

export type WsMessageType = {
  data: string,
  messageType: string
}

// 历史患者
type showRulesType = {
  id: number,
  itemName: string,
  nickname: string,
  showLabel: string,
  showType: string,
}
export type HistoryList = {
  customerId: number,
  selectTime: string,
  customerName: string,
  from: string,
  customerSex: string,
  userId: number,
  showRules: showRulesType[],
  hasArrearsOrder: boolean,
  age: number
}


// 预约面板的数据
export type PersonPanelType = {
  id: number,
  customerId: number,
  name: string,
  age: number,
  gender: string,
  historySickNum: string,
  birthDate: string,
  mobileFirstNumStr: string,
  remark: string,
  status: string,
  scoreShow: string,
  subscribeTime: string,
  endTime: string,
  doctorName: string,
  itemNames: string,
  createUserName: string,
  createTime: string,
  customerInfo: any,
  consultantName: string,
  departmentName: string,
}
